- /* sdomltdb.cpp by K.Tsuru */
- // function ID = 332 DRADIX
- /********************************
- SDouble : SDouble*double
- *********************************/
- #ifndef SN_H
- #include "sn.h"
- #endif
- SDouble operator*(const SDouble& m, double n){
- if( (m.Sign(332) == 0) || (n == 0.0) ) return SDZero(m);
- if(m.Type() == m.BIN_DEC) return DDMult(m , n); // Must use XsMult()
-
- long N;
- int e;
- int d2l = doubleTolongExp(n, &N, &e, m.SlOpMaxValue());
-
- if(d2l){
- ulong p = (ulong)labs(N);
- SDouble r = DsMult(m, p);
- if(e) r.MultPow10(e); // cannot use BIN_DEC
- if(n < 0) r.ChangeSign();
- return r;
- }
- return DDMult(m , n);
- }
sdomltdb.cpp : last modifiled at 2015/11/25 20:18:16(648 bytes)
created at 2017/10/07 10:21:14
The creation time of this html file is 2017/10/07 10:30:03 (Sat Oct 07 10:30:03 2017).